package com.zsrt.java.day20170103.wrl.t07.exc;

public class Math02 {
	public int div(int i,int j)throws Exception{			//定义除法操作，如有异常，抛出
		System.out.println("-----------计算开始------------");
		int temp = 0;
		try {
			temp = i/j;		//可能出现异常地方
		} catch (Exception e) {
			throw e;		//把 异常抛出
		}finally {
			System.out.println("-----------计算结束------------");
		}
		return temp;
	}
}
